package com.dy.tieba;

import org.apache.http.message.BasicHeader;

import service.ws.WSHandler;

public class TieBaServiceImpl {

	public static void addHeader(WSHandler wsHandler){
		 wsHandler.addHeader(new BasicHeader("User-Agent","Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36"));
		 wsHandler.addHeader(new BasicHeader("Host","tieba.baidu.com"));
		 wsHandler.addHeader(new BasicHeader("Accept-Language","zh-CN,zh;q=0.8"));
		 wsHandler.addHeader(new BasicHeader("Accept","text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8"));
	}
}
